/*
* Copyright (C) 2020 ~ 2024 chaigec All Rights Reserved.
*
* Author:     chaigec <chaigec@163.com>
* Maintainer: chaigec <chaigec@163.com>

 * Use of this source code is governed by MIT license that can be found in the
 * LICENSE file in the root of the source tree. All contributing project authors
 * may be found in the AUTHORS file in the root of the source tree.
*/

#include "MkUtil/MkMd5.h"
#include <gtest/gtest.h>

TEST(MkMd5, md5Test)
{
    MkString Md5Res = CMkMd5Encode::Encode("123");
    EXPECT_STREQ(Md5Res.c_str(), "202cb962ac59075b964b07152d234b70");
    Md5Res=  CMkMd5Encode::Encode("abc");
    EXPECT_STREQ(Md5Res.c_str(), "900150983cd24fb0d6963f7d28e17f72");
}